package com.ifengchao.job;

import com.ifengchao.service.DealDailyTransService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 处理智子云广告主账户
 *
 * @author HuangYL
 */
@Component(value = "dealDailyTransJob")
public class DealDailyTransJob {
    private static final Logger logger = Logger.getLogger(DealDailyTransJob.class);
    @Autowired(required = true)
    private DealDailyTransService dealDailyTransService;

    /**
     * 业务线程启动
     */
    public void executeTask() {
        System.out.println("-----处理每日交易job------");
        logger.info("------处理每日交易jobjob------");
        try {
            dealDailyTransService.dealBusiness();
        } catch (Exception e) {
            logger.error("---每日交易job处理出错：", e);
        }

    }
}